// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.jasmin.circuit;

/**
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class Units {
  public static Unit get(String name) {
    if (name.equals("AND")) {
      return new AndGate();
    } else {
      throw new IllegalArgumentException("Unknown unit name");
    }
  }
}
